<?php
/**
 * 
 * @author Paolo Bertuzzo
 *
 */
namespace User\Helper;

use Zend\View\Helper\HelperInterface;
use Zend\View\Helper\AbstractHelper;
use Zend\View\Model\ViewModel;
use Zend\View\Helper\Partial;
use Utilities\Session\SessionFacade;
use Utilities\Server\Url;

class AuthenticationAnchorHelper extends Partial
{
    
    /**
     * (non-PHPdoc)
     * @see \Zend\View\Helper\Partial::__invoke()
     */
    public function __invoke($name = NULL, $values = NULL)
    {
        $sessionFacade = new SessionFacade();
        
        return parent::__invoke('helper/authentication_anchor', array(
        	'customer' => $sessionFacade->getCustomer(),
            'currentUrl' => Url::getCurrentUrl(),
            'country' => $sessionFacade->getStore()->getCountry(),
            'locale' => $sessionFacade->getLocale()
        ));
    }
   
}

?>